import bge
import bgl

scene = bge.logic.getCurrentScene()
cont = bge.logic.getCurrentController()

print ("This is GUI script")

InfoTxt = scene.objects["GUIinfotxt"]


#str(5)




InfoTxt.text = str ("%s hotspots\n%s game objects\n%s cameras (active: %s)\n%s objects in total" 
%(
len(bge.hotspots),
bge.numGameObjects, 
str(len(bge.MainScene.cameras)),
str(bge.MainScene.active_camera),
str(len(bge.MainScene.objects))
))
